package com.test.entity;

import java.sql.Timestamp;
import java.util.HashSet;
import java.util.Set;

/**
 * Orders entity. @author MyEclipse Persistence Tools
 */

public class Orders implements java.io.Serializable {

	// Fields

	private Integer id;
	private UserInfo userInfo;
	private String orderId;
	private String createTime;
	private Integer state;
	private Set orderDetails = new HashSet(0);

	// Constructors

	/** default constructor */
	public Orders() {
	}

	/** minimal constructor */
	public Orders(UserInfo userInfo, String orderId, String createTime,
			Integer state) {
		this.userInfo = userInfo;
		this.orderId = orderId;
		this.createTime = createTime;
		this.state = state;
	}

	/** full constructor */
	public Orders(UserInfo userInfo, String orderId, String createTime,
			Integer state, Set orderDetails) {
		this.userInfo = userInfo;
		this.orderId = orderId;
		this.createTime = createTime;
		this.state = state;
		this.orderDetails = orderDetails;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public UserInfo getUserInfo() {
		return this.userInfo;
	}

	public void setUserInfo(UserInfo userInfo) {
		this.userInfo = userInfo;
	}

	public String getOrderId() {
		return this.orderId;
	}

	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}

	public String getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public Integer getState() {
		return this.state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public Set getOrderDetails() {
		return this.orderDetails;
	}

	public void setOrderDetails(Set orderDetails) {
		this.orderDetails = orderDetails;
	}

}